package typinggame;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
import java.awt.*;
import java.util.*;
/**
 *
 * @author suhui
 */
public class word {

    String letters;
    int x;
    int y;

    public word(String w, int xpos, int ypos){
        this.letters = w;
        this.x = xpos;
        this.y = ypos;
    }
    public int getx()
    {
        return x;
    }
    public int gety()
    {
        return y;
    }
    public void setx(int newx)
    {
        this.x = newx;
    }
    public void sety(int newy)
    {
        this.y = newy;
    }

    public void setpos(int newx, int newy)
    {
        setx(newx);
        sety(newy);
    }
    public void paint(Graphics g)
    {
        
        g.setColor(Color.BLACK);
        g.drawString(letters, x, y);
    }
}
